Guidelines for Editing Email Templates
- No scripts are allowed as part of the HTML.
- Use tags to specify how and where situational data is inserted when an email is composed on the Ayla Cloud.
- For substitution, the following tags are supported:
- [[logo_image]] (The OEM’s logo)
- [[ios_app_link_image]] (Image to be displayed as part of the iPad/iPhone app link)
- [[android_app_link_image]] (Image to be displayed as part of the Android app link)
- [[property_name]] (Name of the property)
- [[property_value]] (Value of the property that triggered the alert)
- [[property_update_time]] (Time at which the property reached the value that triggered the alert)
- [[device_product_name]] (Name of the device)
- [[device_product_name]] (Name of the device)
- [[device_dsn]] (Device serial number)
- [[user_name]] (Username that can be used in the greeting, as specified during trigger app creation)
- [[user_message]] (User message defined during trigger app creation)
- [[trigger_app_email_body]] (Placeholder for the body part of a trigger email alert)
- [[user_confirmation_token]] (Confirmation token generated by the Ayla Cloud to confirm the user)
- [[user_password_reset_token]] (Password reset token generated by the Ayla Cloud)
NOTE
The above tags can be categorized based on where their substitutions come from.
- Tags for which data comes from the uploaded template:
[[logo_image]]
[[ios_app_link_image]]
[[android_app_link_image]]
- Tags for which data comes from the Ayla Cloud:
Trigger App tags:
[[property_name]]
[[property_value]]
[[property_update_time]]
[[device_product_name]]
[[device_dsn]]
[[user_message]]
[[user_name]]
[[trigger_app_email_body]] (High level tag to indicate that the html+tags come from the trigger_app at actual time the trigger fires.
User sign-up confirmation tags:
[[user_confirmation_token]]
[[user_name]]
User password reset tags:
[[user_password_reset_token]]
[[user_name]]
- Double bracketing format [[xxxx]] is important for proper substitutions.
- Samples for various templates can be downloaded from the Email Templates page.
- A template for a trigger alert email may display similar details:
- file://localhost/Users/<registered user name>/<download directory>/ayla_custom_email_samples>/trigger_app/template.html
- logo image
- [[trigger_âpp_email_body]]
- open your app here
iOS_app_link_image
Android_app_link_image
See also: Email Template tab, Update Email Templates,
Please click here to let us know how we're doing. Thank you.